package com.win.oauth.utils;

public class UserClaimsHolder {

    private static final ThreadLocal<UserClaims> USER_CACHED = new ThreadLocal<>();

    public static void set(UserClaims token) {
        USER_CACHED.set(token);
    }

    public static UserClaims get() {
        return USER_CACHED.get();
    }

    public static void clear() {
        USER_CACHED.remove();
    }

}
